import request from '@/utils/request'
import {commercialApiUrl} from '../config'

/**
 *获取设计规划列表数据------------------------设计规划-------------------------------------------
 * @param data
 */
export function getPlanningList(data) {
    return request({
      url: commercialApiUrl + '/business/organization/design/plan/query',
      method: 'post',
      data
    })
  }
  /**
 *获取设计规划回显列表数据
 *
 */
 export function getBusinessPlanList(data) {
  return request({
    url: `${commercialApiUrl}/business/organization/design/plan/query/${data.id}`,
    method: 'get',
  })
}
  /**
 *保存设计规划数据
 * @param data
 */
 export function savePlanningList(data) {
  return request({
    url: commercialApiUrl + '/business/organization/design/plan/save',
    method: 'post',
    data
  })
}
 /**
 *设计规划统计
 * @param data
 */
 export function getPlanningCount(data) {
  return request({
    url: commercialApiUrl + '/business/organization/design/plan/count',
    method: 'post',
    data
  })
}
 /**--------------------------设计策划--------------------------------------------------------
 *设计策划列表数据
 * @param data
 */
 export function getDesignPlanningList(data) {
  return request({
    url: commercialApiUrl + '/business/organization/make/plan/query',
    method: 'post',
    data
  })
}

 /**
 *
*新增或更新设计策划
 * @param data
 */
 export function saveDesignPlanning(data) {
  return request({
    url: commercialApiUrl + '/business/organization/make/plan/save',
    method: 'post',
    data
  })
}
  /**
 *获取设计策划回显列表数据
 *
 */
 export function LookDesignPlanning(data) {
  return request({
    url: `${commercialApiUrl}/business/organization/make/plan/query/${data.id}`,
    method: 'get',
  })
}
 /**
 *
*设计策划统计
 * @param data
 */
export function designPlanningCount(data) {
  return request({
    url: commercialApiUrl + '/business/organization/make/plan/count',
    method: 'post',
    data
  })
}
/**--------------------------成本策划--------------------------------------------------------
 *成本策划列表数据
 * @param data
 */
 export function getCostPlanning(data) {
  return request({
    url: commercialApiUrl + '/business/organization/cost/plan/query',
    method: 'post',
    data
  })
}
  /**
 *获取成本策划回显列表数据
 *
 */
 export function LookCostPlanning(data) {
  return request({
    url: `${commercialApiUrl}/business/organization/cost/plan/query/${data.id}`,
    method: 'get',
  })
}
/**
 *
*新增或更新成本策划
 * @param data
 */
export function saveCostPlanning(data) {
  return request({
    url: commercialApiUrl + '/business/organization/cost/plan/save',
    method: 'post',
    data
  })
}
/**
 *
*成本策划统计
 * @param data
 */
export function CostPlanningCount(data) {
  return request({
    url: commercialApiUrl + '/business/organization/cost/plan/count',
    method: 'post',
    data
  })
}